<!-- INCLUDE sv_overall_header.html -->

<script src="{T_TEMPLATE_PATH}/RGraph/RGraph.common.core.js" ></script>
<script src="{T_TEMPLATE_PATH}/RGraph/RGraph.line.js" ></script>

<script>
	function DrawLine(id, price_data, buy_data, sell_data, buy_predict, sell_predict, min, max)
	{			
        var line = new RGraph.Line(id, price_data, buy_data, sell_data, buy_predict, sell_predict);
        line.Set('numxticks', 0);
        line.Set('numyticks', 0);
        line.Set('colors', ['black', 'skyblue', 'pink', 'blue','red']);
        line.Set('linewidth', 1);
        line.Set('ymax', max);
        line.Set('ymin', min);
        line.Set('chart.axis.linewidth', 1);     
        
        line.Draw();
	}
</script>



<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>Analysis Result</h2> 
	</div>
		
	<p>Local report path: {LOCAL_REPORT_PATH} </p>
	<p>CORP: {CORP_ID}, MODEL: {MODEL} </p>
	
</div>


<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>CHART   </h2> 
	</div>
	
	<canvas id="chart" width="{CHART_WIDTH}" height="760"> </canvas>
	
	<script>
				DrawLine('chart', [{PRICES}],[{BUY}],[{SELL}],[{BUY_PREDICT}],[{SELL_PREDICT}], {MIN}, {MAX});
	</script>

	
</div>




<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>Model Summary  </h2> 
	</div>
		
	<table border="0" cellpadding="10" cellspacing="10" id="table-6" style="text-align:center;">
		<tr>
			<td>MODEL  </td>			
			<td> signal percent <BR> (%)</td>			
			<td> accuracy <BR> (%)</td>
			<td> error rate <BR> (%)</td>
			<td> peak accuracy <BR> (%)</td>
			<td> peak T1 rate <BR> (%)</td>
			<td> peak T2 rate <BR> (%)</td>
			<td> valley accuracy <BR> (%)</td>
			<td> valley T1 rate <BR> (%)</td>
			<td> valley T2 rate <BR> (%)</td>
			
			
		</tr>
		<!-- BEGIN model_summary -->		
		<tr>
			<td> {model_summary.MODEL_ID} 	</td>
			
			<td> {model_summary.SIGNAL_PERCENT} 	</td>
			<td> {model_summary.ACCURACY} 	</td>
			<td> {model_summary.ERROR_RATE} 	</td>
			
			<td> {model_summary.PEAK_ACCURACY} 	</td>
			<td> {model_summary.PEAK_T1_RATE} 	</td>
			<td> {model_summary.PEAK_T2_RATE} 	</td>
			
			<td> {model_summary.VALLEY_ACCURACY} 	</td>
			<td> {model_summary.VALLEY_T1_RATE} 	</td>
			<td> {model_summary.VALLEY_T2_RATE} 	</td>
			
			
		</tr>
		<!-- END model_summary -->
	</table>
</div>






<!-- BEGIN corp_list -->

<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>	{corp_list.CORP_NAME}({corp_list.CORP_ID}) - Model Summary  </h2> 
	</div>
		
	<table border="0" cellpadding="10" cellspacing="10" id="table-6" style="text-align:center;">
		<tr>
			<td>MODEL  </td>			
			<td> signal percent <BR> (%)</td>			
			<td> accuracy <BR> (%)</td>
			<td> error rate <BR> (%)</td>
			
			<td> peak accuracy <BR> (%)</td>
			<td> peak T1 rate <BR> (%)</td>
			<td> peak T2 rate <BR> (%)</td>
			
			<td> valley accuracy <BR> (%)</td>
			<td> valley T1 rate <BR> (%)</td>
			<td> valley T2 rate <BR> (%)</td>
			
			<td> Monthly Return Rate <BR> (%)</td>
			<td> Price Std Dev in Peak <BR> (%)</td>
			<td> Price Std Dev in Valley <BR> (%)</td>
			
			
		</tr>
		<!-- BEGIN model -->		
		<tr>
			<td> {corp_list.model.MODEL_ID} 	</td>
			
			<td> {corp_list.model.SIGNAL_PERCENT} 	</td>
			<td> {corp_list.model.ACCURACY} 	</td>
			<td> {corp_list.model.ERROR_RATE} 	</td>
			
			<td> {corp_list.model.PEAK_ACCURACY} 	</td>
			<td> {corp_list.model.PEAK_T1_RATE} 	</td>
			<td> {corp_list.model.PEAK_T2_RATE} 	</td>
			
			<td> {corp_list.model.VALLEY_ACCURACY} 	</td>
			<td> {corp_list.model.VALLEY_T1_RATE} 	</td>
			<td> {corp_list.model.VALLEY_T2_RATE} 	</td>
			
			<td> {corp_list.model.MONTHLY_RETURN_RATE} 	</td>
			<td> {corp_list.model.PRICE_STD_DEV_PEAK} 	</td>
			<td> {corp_list.model.PRICE_STD_DEV_VALLEY} 	</td>
			
		</tr>
		<!-- END model -->
	</table>
</div>

<!-- END corp_list -->











<!-- INCLUDE sv_overall_footer.html -->